<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>平方网建材网</title>
<link href="/temp/css/right.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/common/jquery-1.5.1.min.js"></script>
    <script src="/common/json2.js" type="text/javascript"></script>
    <script src="/common/jsmart.js" type="text/javascript"></script>
</head>
<body>
<div class="right_zxjm">
            <div class="right_zxjm_title">
                推荐企业</div>
            <div class="right_zxjm_nr">
                <div>
                    <ul id="recsupplierlist">
                    </ul>
                </div>
            </div>
        </div>
        
                <!--数据模板绑定 最新加盟-->
                <script  id="recsupplier" type="text/x-jsmart-tmpl">
				{foreach $suppliers as $j => $supplier}					
                            <li><a href="/temp/supplierinfo.html?id={$suppliers[$j]}" target="_blank" title="{$suppliers[$j]}">{$suppliers[$j]}</a></li>
				{/foreach}
				</script>
        <script>
		$(document).ready(
					function(){
						$.ajax({
							url: '/service/_view/getRecommendSupplier?reduce=false&limit=9',
							type: 'GET',
							dataType: 'json',
							success:function(data){
								var tpl = new jSmart(document.getElementById('recsupplier').innerHTML);
								var res = tpl.fetch(data.rows[0].value);
								$("#recsupplierlist").html(res);
							}
						});
					}
				);
        </script>
</body>
</html>
